<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            border: 1px solid black;
            width: 200px;
        }

        .title {
            text-align: center;
        }
    </style>
</head>

<body>
    <div id="app">
        <p> flag:{{flag}}</p>
        <div class="box">
            <p class="title">游玩协议</p>
            <div>
                <input type="checkbox" :checked="flag" @change="flag=$event.target.checked">
            </div>
        </div>

        <div class="box">
            <p class="title">游玩协议</p>
            <div>
                <input type="checkbox" v-model="flag">
                已阅读
            </div>

        </div>
        <p style="color: red;" v-show="flag">游戏开始</p>
        <hr>
        <p>flag1:{{flag1}}</p>
        <div class="box">
            <p class="title">游玩协议</p>
            <input type="checkbox" true-value="已阅读" false-value='未阅读' v-model="flag1">
            已阅读
        </div>
        <hr>
        <p>skill:{{skill}}</p>
        <input type="checkbox" v-model="skill" value="css">css
        <input type="checkbox" v-model="skill" value="vue">vue
        <input type="checkbox" v-model="skill" value="html">html
        <input type="checkbox" v-model="skill" value="js">js
        <hr>
        <p>skill:{{skill2}}</p>
        <input type="checkbox" v-model="skill2" value="css">css
        <input type="checkbox" v-model="skill2" value="vue">vue
        <input type="checkbox" v-model="skill2" value="html">html
        <input type="checkbox" v-model="skill2" value="js">js
    </div>

    <script type="module">
        import { createApp } from "../assets/vue3/vue.esm-browser.js";
        createApp({
            data() {
                return {
                    flag: false,
                    flag1: "已阅读",
                    skill: ['js', 'html'],
                    skill2: new Set(['css','vue'])

                }
            }
        }).mount("#app");
    </script>
</body>

</html>